package com.djl.seckilldemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.djl.seckilldemo.pojo.User;
import com.djl.seckilldemo.vo.LoginVo;
import com.djl.seckilldemo.vo.RespBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2021-10-14
 */
public interface IUserService extends IService<User> {

      RespBean doLogin(LoginVo loginVo, HttpServletRequest request, HttpServletResponse response);

      /**
       * 根据cooike获取用户
       * @param ticket
       * @param request
       * @param response
       * @return
       */
      User getUserByCookie(String ticket,HttpServletRequest request,HttpServletResponse response);

      /**
       * 用户更新密码
       * @param ticket
       * @param password
       * @return
       */
      RespBean updatePassword(String ticket,String password,HttpServletRequest request, HttpServletResponse response);
}
